import 'package:flutter/material.dart';
import 'package:offical/icon/MaterialIconWidget.dart';
import 'package:offical/icon/MyIconWidget.dart';
import 'package:offical/images/LocalImageWidget.dart';
import 'package:offical/images/NetImageWidget.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // MaterialApp 是Material库中提供的Flutter APP框架，通过它可以设置应用的名称、主题、语言、首页及路由列表等。MaterialApp也是一个widget。
    return MaterialApp(
      title: 'Flutter Demo',
      home: MyHomePage()
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("无状态组件示例"),
      ),
      body: MyIconWidget()
    );
  }
}
